package com.jx.driving.transmission;

import java.util.Arrays;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.DynamicByteArrayAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 设置计时终端应用参数
 * 
 * @author shenliuyang
 *
 *         2016年8月15日下午3:31:37
 */
@TerminalAnnotation
public class Terminal0x0502Transmission extends TimeTerminalTransmissionMessage {
    /**
     * 0：默认应答； 1：设置成功； 2：设置失败
     */
    @ByteAnnotation(order = 1)
    private short result;// 执行结果
    /**
     * 1：可用，默认值 2：禁用
     */
    @ByteAnnotation(order = 2)
    private short status;// 禁训状态
    @DynamicByteArrayAnnotation(value = 1, order = 3)
    private byte[] reminder;// 提示消息

    public short getResult() {
	return result;
    }

    public void setResult(short result) {
	this.result = result;
    }

    public short getStatus() {
	return status;
    }

    public void setStatus(short status) {
	this.status = status;
    }

    public byte[] getReminder() {
	return reminder;
    }

    public void setReminder(byte[] reminder) {
	this.reminder = reminder;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x0502Transmission [result=").append(result).append(", status=").append(status)
		.append(", reminder=").append(Arrays.toString(reminder)).append("]");
	return builder.toString();
    }

}
